package com.rock.controller;


import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.rock.entity.UserEntity;
import com.rock.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user")
@RestController
public class UserController  {

    @Autowired
    private UserService ue ;


    @RequestMapping(value="/getInfo",method = RequestMethod.GET)
    public UserEntity getInfo() {
        return ue.getUserInfo();
    }
}
